package qiyu.live.gift.provider.service.impl;

import jakarta.annotation.Resource;
import org.qiyu.live.common.interfaces.utils.ConvertBeanUtils;
import org.springframework.stereotype.Service;
import qiyu.live.gift.dto.GiftRecordDTO;
import qiyu.live.gift.provider.dao.mapper.GiftRecordMapper;
import qiyu.live.gift.provider.dao.po.GiftRecordPO;
import qiyu.live.gift.provider.service.IGiftRecord;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-10-23
 * Time: 20:30
 */
@Service
public class GiftRecordImpl implements IGiftRecord {

    @Resource
    private GiftRecordMapper giftRecordMapper;

    @Override
    public void insertOne(GiftRecordDTO giftRecordDTO) {
        giftRecordMapper.insert(ConvertBeanUtils.convert(giftRecordDTO, GiftRecordPO.class));
    }
}